<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <script src="https://unpkg.com/react@16/umd/react.development.js"></script>
    <script src="https://unpkg.com/react-dom@16/umd/react-dom.development.js"></script>
    <!-- 生产环境中不建议使用 -->
    <script src="https://unpkg.com/babel-standalone@6.15.0/babel.min.js"></script>
    <title>Document</title>
</head>
<body>
    <div id="app"></div>
    <script type="text/babel">
        // 组合组件
        // 方法三
        function List1 (){
            return(
                <div>
                    <ul>
                        <li>111</li>
                        <li>222</li>
                        <li>333</li>
                    </ul>
                </div>
            )
        }
        function List2 (){
            return(
                <div>
                    <ul>
                        <li>123</li>
                        <li>456</li>
                        <li>789</li>
                    </ul>
                </div>
            )
        }
        function App(){
            return(
                <div>
                    <List1/>
                    <List2/>
                </div>
            )
        }
        ReactDOM.render(
            <App/>,
            document.getElementById('app')
        )
    </script>
</body>
</html>